# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=opencore-amr
pkgver=0.1.6
pkgrel=1
pkgdesc="Implementation of Adaptive Multi Rate speech codec"
url="https://sourceforge.net/projects/opencore-amr/"
arch="all"
license="Apache-2.0"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/sourceforge/opencore-amr/opencore-amr-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8955169954b09d2d5e2190888602c75771b72455290db131ab7f40b587df32ea6a60f205126b09193b90064d0fd82b7d678032e2b4c684189788e175b83d0aa7  opencore-amr-0.1.6.tar.gz
"
